package j01zuoye;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;

public class J1 {
    public static void main(String[] args) throws IOException {
        byte[] arr = "ab你好".getBytes();
        System.out.println(Arrays.toString(arr));
        System.out.println("=====");
        File f = new File("_1219/src/j01zuoye/file/JavaSE/IO.txt");
        if(!f.exists()){
            //创建父文件夹
            File parentFold = new File(f.getParent());
            parentFold.mkdirs();
        }
        //文件夹肯定存在
        FileWriter fileWriter = new FileWriter(f);
        fileWriter.write("IO是InputStream和OutputStream!");
        fileWriter.close();
    }
}

